/**
 * 
 */
package com.redside.dao;

import java.util.List;

import com.redside.model.Email;

/**
 * @author PCHAPMAN
 *
 */
public interface EmailDao {
    
    /**
     * Saves the Email entry
     */
    public Email save(Email email);

    /**
     * Deletes the Email entry
     */
    public void delete(Email email);

    /**
     * Returns a List of all Email entries
     */
    public List<Email> findAll();
    
    /**
     * Returns the Email entry based on id
     */
    public Email findById(Long id);
    
    /**
     * Returns the Email entry based on id and county id
     */
    public List<Email> findByIdAndCountyId(Long id, String countyId); 
    
    /**
     * Returns a List of all Email entries
     * based on email type
     */
    public List<Email> findAllByType(Long id);

}